package com.my.bootvue.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author peanut
 */
@Controller
public class HelloWorld {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @RequestMapping("helloWorld")
    @ResponseBody
    public String testHelloWorld() {
        logger.info("进入testHelloWorld");
        return "HelloWorld";
    }
}
